package net.huashitong.ssydt.provider.pk.service;

import net.huashitong.ssydt.base.service.LongService;
import net.huashitong.ssydt.pk.entity.SsPkYmdxMatchRecord;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.12.12
 */
@CacheConfig
public interface SsPkYmdxMatchRecordService extends LongService<SsPkYmdxMatchRecord> {
    /**
     * 获取当前比赛信息
     *
     * @return
     */
    SsPkYmdxMatchRecord getNowYmdxMatch();

    @Cacheable("getLastMatchRecordId")
    Long getLastMatchRecordId(Long matchRecordId);

    List<SsPkYmdxMatchRecord> findNonFinal();

}
